/*
 * Amkai Enterprise Solution (AES.) 
 * Copyright 2004-2008 by Amkai(TM), Inc.
 * www.amkai.com
 * 
 * Project: webservice
 * Package: com.amkai.aes.webservice.binary.objecthandler.billing
 * File: LedgerSettingsHandler.java
 * Created: 2008.12.03. 11:43:35
 * Author: polaj 
 * 
 */
package com.amkai.aes.webservice.binary.objecthandler.billing;

import com.amkai.aes.aescommon.AESSettings;
import com.amkai.aes.aescommon.service.binary.job.billing.LedgerSettingsJob;
import com.amkai.aes.aescommon.service.result.billing.LedgerSettingsResult;
import com.amkai.aes.generatedbeans.organization.Department;
import com.amkai.aes.webservice.binary.JobObjectHandler;

public class LedgerSettingsHandler implements JobObjectHandler<LedgerSettingsJob, Department, LedgerSettingsResult> {

	@Override
	public LedgerSettingsResult process(LedgerSettingsJob job, Department object) throws Exception {
		LedgerSettingsResult result = new LedgerSettingsResult();
		result.setRecentTransactionDefault(AESSettings.getServerSettings().getAmkaiOfficeConfig().getRuntime().getCustomization().isRecentTransactionDefault());
		return result;
	}
}
